 <?php
//ajax.saveSlide.php?
include('../includes/dbConnection.php');

$slideNum = $_GET['slideNum'];
$presId=$_GET['presId'];
if ($presId =='') exit("@22");
$presTitle=$_GET['presTitle']; echo  $presId . " " . $slideNum; 
$sql=mysql_query("UPDATE presentations SET slideNum='$slideNum',presId='$presId'") or die(mysql_error());
// echo $content;
//echo $pagestr;
//$content.=$pagestr;

//mysql_query("INSERT INTO slides (presId,pageNumber,caption,layout,content) VALUES('$presId','$pageNumber','$caption','$layout','$content')") or die(mysql_error());



//$sql=mysql_query("UPDATE presentations SET slideNum='$slideNum',presId='$presId'") or die(mysql_error());

/*
$sql=mysql_query("SELECT * FROM slides WHERE slideId='$slideId' and presId='$presId'") or die(mysql_error());
$rsnum = mysql_num_rows($sql);
if ($rsnum > 0) {
	$rs=mysql_fetch_assoc($sql);
$presId=$rs['presId'];
$caption= $rs['caption'];
 $content=$rs['content'];
 echo "Presentation #". $presId. " " . $caption . " " .   $content;
}
else 
	echo  0;
	
*/
?>
